package com.yu.learn.jvm;

import java.util.List;

import com.google.common.collect.Lists;

/**
 * @author yushijun
 * @date 2019/6/5
 * @description vm args:-Xms20M -Xmx20M -XX:+HeapDumpOnOutOfMemoryError 堆溢出
 */
public class TestDumpOutOfMerory {
    public static void main(String[] args) {
        List<Object> job = Lists.newArrayList();
        while (true) {
            job.add(new Object());
        }
    }
}
